﻿using System.Web.Mvc;

namespace Sundry.Areas.WebApi
{
    public class WebApiAreaRegistration : AreaRegistration
    {
        public override string AreaName {
            get {
                return "WebApi";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context) {
            context.MapRoute(
                "WebApi_default",
                "WebApi/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional },
                new string[] { "Sundry.Areas.WebApi.Controllers" }
            );
        }
    }
}
